package model

import "github.com/zeromicro/go-zero/core/stores/mon"

var _ TestmongodbModel = (*customTestmongodbModel)(nil)

type (
	// TestmongodbModel is an interface to be customized, add more methods here,
	// and implement the added methods in customTestmongodbModel.
	TestmongodbModel interface {
		testmongodbModel
	}

	customTestmongodbModel struct {
		*defaultTestmongodbModel
	}
)

// NewTestmongodbModel returns a model for the mongo.
func NewTestmongodbModel(url, db, collection string) TestmongodbModel {
	conn := mon.MustNewModel(url, db, collection)
	return &customTestmongodbModel{
		defaultTestmongodbModel: newDefaultTestmongodbModel(conn),
	}
}
